From a34c2c9449bd83884d36fc38fd9fe6662fe49f4b Mon Sep 17 00:00:00 2001 From: tsteven4 <13596209+tsteven4@users.noreply.github.com> Date: Thu, 14 Oct 2021 06:36:25 -0600 Subject: [PATCH] fix codacy flagged %d in format string mismatch. %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. --- tpo.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tpo.cc b/tpo.cc index 24be57943..364277a28 100644 --- a/tpo.cc +++ b/tpo.cc @@ -533,7 +533,7 @@ static void tpo_process_tracks() // byte for track style name length, then name itself tmp = gbfgetc(tpo_file_in); // wrong byte order?? tmp = tpo_read_int(); // 16 bit value - if(DEBUG > 1) { printf("Track style %d has %d-byte (0x%x) name\n", ii, tmp, tmp); } + if(DEBUG > 1) { printf("Track style %u has %d-byte (0x%x) name\n", ii, tmp, tmp); } if (tmp >= TRACKNAMELENGTH) { printf("ERROR! Found track style name over %d chars, skipping all tracks!\n",TRACKNAMELENGTH); return; -- 2.30.2